
<script type="text/javascript" src="lib/jquery-1.7.1.min.js"></script>

<link rel="stylesheet" href="lib/jquery-tree/jquery.jOrgChart.v2.css"/>
<script src="lib/jquery-tree/jquery.jOrgChart.js"></script>

<script src="daniel-tree.js"></script>

<style>
.conteudoNode { padding:10px; font-size:14px; }
.conteudoNode a { border:1px solid #666666; padding:6px; }
.conteudoNode a:hover { border:1px solid blue; background-color:white; }
</style>


<div id="chart" class="orgChart"></div>
 


<script>


var tree = new Tree('<div class=conteudoNode>Estrutura de dados II</div>');
var node1 = tree.getRoot();

var games = tree.addChild(node1, '<div class=conteudoNode>games</div>');
var trees = tree.addChild(node1, '<div class=conteudoNode>Tree</div>');
var grafos = tree.addChild(node1, '<div class=conteudoNode>Grafos</div>');
var senha = tree.addChild(games, '<div class=conteudoNode><a id="senha" href="senha/senha.html">Senha</a></div>');
var testeTree = tree.addChild(trees, '<div class=conteudoNode><a href="TreeTest.html">Testar tree</a></div>');
var danielTree = tree.addChild(trees, '<div class=conteudoNode><a href="daniel-tree.js">biblioteca tree</a></div>');
$('body').append(tree.showHtml(tree.getRoot()));

window.location=$('#senha').attr('href');

jQuery(document).ready(function() {
    $("#org").jOrgChart({
        chartElement : '#chart',
        dragAndDrop  : false
    });
});
</script>


